package com.leanote.berial.tingphone.tasks;

import android.os.AsyncTask;

/**
 * Created with InetlliJ IDEA.
 * Project: com.liuhui.zhufengfm.app.tasks
 * user  Pinocchio
 * Date 2015/7/28
 * Email:liu594545591@126.com
 */
public abstract class BaseTask extends AsyncTask<String,Integer,TaskResult> {
   private TaskCallback callback;

    public BaseTask(TaskCallback callback) {
        this.callback = callback;
    }



    @Override
    protected void onPostExecute(TaskResult taskResult) {
        if (callback != null) {
            callback.onTaskFinished(taskResult);
        }
    }
}
